﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using flowers;

namespace _3
{
    class factory
    {

        public flowers.flowerses.roza newRoza(string svetA, int stoimostA)
        {
            flowers.flowerses.roza rozaA = new flowerses.roza();
            rozaA.svet = svetA;
            //rozaA.s
            rozaA.stoimost = stoimostA;
            return rozaA;
        }

        public flowers.flowerses.roma newRoma(int stoit, string nazv)
        {
            flowers.flowerses.roma romaA = new flowerses.roma();
            //romaA. = "siniy";
            romaA.tip = nazv;
            romaA.stoimost = stoit;
            return romaA;
        }

        public flowers.flowerses.zelen newTrava(int stoit, string nazv)
        {
            flowers.flowerses.zelen trava = new flowerses.zelen();
            trava.nazvanie = nazv;

            trava.stoimost = stoit;
            return trava;
        }

        public flowers.flowerses.buket newBuket(List<flowers.flowerses.flowers> buketA)
        {
            flowers.flowerses.buket buketAA = new flowerses.buket();
            //List<flowers.Class1.flowerses.flowers> buketA = new List<flowers.Class1.flowerses.flowers>();
            buketAA.stoimosts = buketAA.chena(buketA);
            //yield return  buketA;
            return buketAA;
        }


    }
}
